<include file="Index:header" />
<style>
	.avatar {
		width:40px;
		height:40px;
	}
</style>
<div id="content" class="container_16 clearfix">
	<div class="btn-toolbar">
		<a href="{:U('Admin/Member/index')}" class="btn btn-primary">成员管理</a>
		<a href="{:U('Admin/Member/edit')}" class="btn"><i class="icon-plus"></i>添加成员</a>
	</div>	
	<br />
	<div class="well">
	
		<form action="{:U('Admin/News/index')}" class="bs-docs-example form-search">

			<div class="input-prepend">
				<span class="add-on"><i class="icon-search"></i></span> <input
					type="text" name="keyword" class="search">
			</div>
			<input type="submit" value="搜索" class="btn"/>
			<input type="hidden" name="a" value="{$Think.const.ACTION_NAME}" />
			<input type="hidden" name="m" value="{$Think.const.MODULE_NAME}" />
			<input type="hidden" name="g" value="{$Think.const.GROUP_NAME}" /> 
		</form>
		
		<table class="table">
			<thead>
				<tr>
					<th>头像</th>
					<th>姓名</th>
					<th>性别</th>
					<th>角色</th>
					<th>是否推荐</th>
					<th colspan="2" >操作</th>
				</tr>
			</thead>

			<tbody>
			
				<volist name="members" id="member">
					<tr>
						<td><img src="{$member.avatar}" class="avatar"/></td>
						<td>{:msubstr($member['name'],0,10)}</td>
						<td>{$member.gender_text}</td>
						<td>{$member.role_text}</td>
						<td>{$member.recommend_text}</td>
						<td>
							<a href="{:U('Admin/Member/edit',array('id'=>$member['uid']))}" class="edit">编辑</a>|&nbsp;
							<a href="#" onclick="showsuccess('成功')">推荐</a>|&nbsp;
							<a ctype="drop" acturl="{:U('Admin/Member/delete',array('id'=>$member['uid']))}" href="#">删除</a>
						</td>
					</tr>						
				</volist>

				</tbody>
				<tfoot>
					<tr>
						<td colspan="5" class="pagination">
							{$page}
						</td>
					</tr>
				</tfoot>
</table>
	</div>
	<div class="pagination">{$page}</div>
</div>
<include file="Index:footer" />